package com.ohc.itnanls;

public class Queue {

    private SupperArray supperArray = new SupperArray();

    public void push(int data) {
        supperArray.addToTail(data);
    }

    public int pop() {
        int i = supperArray.select(0);
        supperArray.delete(0);
        return i;
    }


    public boolean isEmpty() {
        return supperArray.size() == 0;
    }

    public int peek() {
        return supperArray.select(0);
    }

}
